import turtle

# 创建一个窗口和画笔
screen = turtle.Screen()
screen.bgcolor("white")

pen = turtle.Turtle()
pen.speed(0)
pen.color("blue")

# 绘制3D立方体
def draw_3d_cube():
    # 绘制前面的正方形
    for _ in range(4):
        pen.forward(100)
        pen.right(90)
    
    # 绘制连接线
    pen.forward(100)
    pen.right(30)
    
    # 绘制侧面
    pen.forward(50)
    pen.right(60)
    pen.forward(100)
    pen.right(120)
    pen.forward(50)
    pen.right(60)
    pen.forward(100)
    
    # 绘制顶部
    pen.right(30)
    pen.forward(100)
    pen.right(150)
    pen.forward(50)
    pen.right(30)
    pen.forward(100)

draw_3d_cube()

# 点击关闭窗口
screen.exitonclick()